package com.hlkj.warboot.moudle_xxl_job.controller;

import com.alibaba.fastjson.JSONObject;
import com.hlkj.warboot.configurer.util.ResponseUtil;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @描述：
 * @作者：lixing_java@163.com
 * @时间：2021/9/5 15:52
 */
@RestController
@RequestMapping("/xxlJob")
@Slf4j
public class XxlJobController {

    /** 
     * @描述 127.0.0.1:8762/warboot/xxlJob/myFirstXxlJobHandler1
     * @作者 lixing_java@163.com
     * @日期 2021/9/5 16:02
     * @param jsonObject
     * @return Object
     */
    @RequestMapping("myFirstXxlJobHandler1")
    public Object myFirstXxlJobHandler1(@RequestBody JSONObject jsonObject) {
        log.info("XxlJobController.myFirstXxlJobHandler1 --- " + JSONObject.toJSONString(jsonObject));
        return ResponseUtil.success();
    }
}
